﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.UI
{
    public static class SwitchAnimationFactory
    {
        public static SwitchAnimation Create(string type)
        {
            type = type.ToUpper();
            if (type == "FADE")
            {
                return new FadeSwitchAnimation();
            }
            else if(string.Equals(type,"NONE", StringComparison.CurrentCultureIgnoreCase))
            {
                return new NoneSwitchAnimation();
            }
            return new FadeSwitchAnimation();
        }
    }
}
